package org.atovio.config;

import org.atovio.config.pk6.NestAppBean;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

// 启用 @ConfigurationProperties 注解，属性是配置类的名字，即@ConfigurationProperties标注的类
// @EnableConfigurationProperties({NestAppBean.class})

// 或者使用@ConfigurationPropertiesScan，扫描配置类的包名，绑定其中的Bean到容器
@ConfigurationPropertiesScan({"org.atovio.config.pk6", "org.atovio.config.pk7"})
@SpringBootApplication
public class Springboot005ConfigApplication {

	public static void main(String[] args) {
		SpringApplication.run(Springboot005ConfigApplication.class, args);
	}

}
